const express = require('express');
const router = express.Router();
const articleHandler = require('../routerHandler/articleRouterHandler');

// 添加
router.post('/_token/add', articleHandler.articleAdd);
// 修改
router.put('/_token/update', articleHandler.articleUpdate);
// 删除
router.delete('/_token/del', articleHandler.articleDelete);
// 查找
router.get('/serch', articleHandler.articliSerch);
// 根据 id 查找
router.get('/detail', articleHandler.detailSerch)

module.exports = router;